<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Ihm</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Ihm</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
                <p class="implements">
            Implements interfaces:
            <ul>
                <li><a href="../Observer/Observer.html">Observer</a></li><li><a href="../Observer/Subject.html">Subject</a></li>            </ul>
        </p>
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The Ihm Observer</p>
<p class="description"><p>The Ihm Observer</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> wassim Chegham &amp; hugo Marchadour</li>
				<li><span class="field">version:</span> 0.1</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Ihm.php.html">/Ihm.php</a> (line <span class="field"><a href="../__filesource/fsource_Observer__Ihm.php.html#a39">39</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																																<div class="var-title">
					<span class="var-type">Integer</span>
					<a href="#$crtime" title="details" class="var-name">$crtime</a>
				</div>
																<div class="var-title">
					<span class="var-type">String</span>
					<a href="#$ihm_hash" title="details" class="var-name">$ihm_hash</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$_caretaker" title="details" class="var-name">$_caretaker</a>
				</div>
																<div class="var-title">
					<span class="var-type"><a href="../Command/Clipboard.html">Clipboard</a></span>
					<a href="#$_clipboard" title="details" class="var-name">$_clipboard</a>
				</div>
																<div class="var-title">
					<span class="var-type">Command[]</span>
					<a href="#$_commands" title="details" class="var-name">$_commands</a>
				</div>
																<div class="var-title">
					<span class="var-type">Character</span>
					<a href="#$_current_char" title="details" class="var-name">$_current_char</a>
				</div>
																<div class="var-title">
					<span class="var-type">Observer[]</span>
					<a href="#$_observers" title="details" class="var-name">$_observers</a>
				</div>
																<div class="var-title">
					<span class="var-type">Integer</span>
					<a href="#$_selectionEnd" title="details" class="var-name">$_selectionEnd</a>
				</div>
																<div class="var-title">
					<span class="var-type">Integer</span>
					<a href="#$_selectionStart" title="details" class="var-name">$_selectionStart</a>
				</div>
																<div class="var-title">
					<span class="var-type">String</span>
					<a href="#$_text" title="details" class="var-name">$_text</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																																																																				
												<div class="method-definition">
											<span class="method-result">Ihm</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$buffer</span>, <span class="var-type"><a href="../Command/Buffer.html">Buffer</a></span>&nbsp;<span class="var-name">$buffer</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#attach" title="details" class="method-name">attach</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$o</span>, <span class="var-type"><a href="../Observer/Observer.html">Observer</a></span>&nbsp;<span class="var-name">$o</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">Boolean</span>
										<a href="#canReplay" title="details" class="method-name">canReplay</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#canUndo" title="details" class="method-name">canUndo</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#copy" title="details" class="method-name">copy</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#cut" title="details" class="method-name">cut</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#detach" title="details" class="method-name">detach</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$o</span>, <span class="var-type"><a href="../Observer/Observer.html">Observer</a></span>&nbsp;<span class="var-name">$o</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">Character</span>
										<a href="#getChar" title="details" class="method-name">getChar</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getSelectionEnd" title="details" class="method-name">getSelectionEnd</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getSelectionStart" title="details" class="method-name">getSelectionStart</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">the</span>
										<a href="#getText" title="details" class="method-name">getText</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#insert" title="details" class="method-name">insert</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#notify" title="details" class="method-name">notify</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#paste" title="details" class="method-name">paste</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#redo" title="details" class="method-name">redo</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replay" title="details" class="method-name">replay</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#reset" title="details" class="method-name">reset</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setChar" title="details" class="method-name">setChar</a>
											(<span class="var-type">Character</span>&nbsp;<span class="var-name">$char</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setSelectionEnd" title="details" class="method-name">setSelectionEnd</a>
											(<span class="var-type">Integer</span>&nbsp;<span class="var-name">$val</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setSelectionStart" title="details" class="method-name">setSelectionStart</a>
											(<span class="var-type">Integer</span>&nbsp;<span class="var-name">$val</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setText" title="details" class="method-name">setText</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$text</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#undo" title="details" class="method-name">undo</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#update" title="details" class="method-name">update</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$s</span>, <span class="var-type"><a href="../Command/Buffer.html">Buffer</a></span>&nbsp;<span class="var-name">$s</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#updateSelection" title="details" class="method-name">updateSelection</a>
											(<span class="var-type">Inetger</span>&nbsp;<span class="var-name">$selStart</span>, <span class="var-type">Integer</span>&nbsp;<span class="var-name">$selEnd</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$crtime" id="$crtime"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Integer</span>
			<span class="var-name">$crtime</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a46">46</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The current time (used for debugging).</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$ihm_hash" id="$ihm_hash"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">String</span>
			<span class="var-name">$ihm_hash</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a52">52</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The unique hash of this object (used for debugging).</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$_caretaker" id="$_caretaker"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$_caretaker</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a97">97</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$_clipboard" id="$_clipboard"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type"><a href="../Command/Clipboard.html">Clipboard</a></span>
			<span class="var-name">$_clipboard</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a77">77</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The clipboard object.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$_commands" id="$_commands"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Command[]</span>
			<span class="var-name">$_commands</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a95">95</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The arrau which contains all commands.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$_current_char" id="$_current_char"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Character</span>
			<span class="var-name">$_current_char</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a89">89</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The current character.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$_observers" id="$_observers"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Observer[]</span>
			<span class="var-name">$_observers</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a83">83</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The array which contains all observers.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$_selectionEnd" id="$_selectionEnd"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Integer</span>
			<span class="var-name">$_selectionEnd</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a71">71</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The end of a selection.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$_selectionStart" id="$_selectionStart"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Integer</span>
			<span class="var-name">$_selectionStart</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a65">65</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The begining of a selection.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$_text" id="$_text"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">String</span>
			<span class="var-name">$_text</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a59">59</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The content of the current text.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a104">104</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The constructor of the Ihm class</p>
<p class="description"><p>The constructor of the Ihm class</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Ihm</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$buffer</span>, <span class="var-type"><a href="../Command/Buffer.html">Buffer</a></span>&nbsp;<span class="var-name">$buffer</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Command/Buffer.html">Buffer</a></span>
				<span class="var-name">$buffer</span><span class="var-description">: The reference of the buffer</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$buffer</span>			</li>
				</ul>
		
			
	</div>
<a name="methodattach" id="attach"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">attach</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a327">327</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Attach an observer to this concrete subject</p>
<p class="description"><p>Attach an observer to this concrete subject</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			attach
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$o</span>, <span class="var-type"><a href="../Observer/Observer.html">Observer</a></span>&nbsp;<span class="var-name">$o</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Observer/Observer.html">Observer</a></span>
				<span class="var-name">$o</span><span class="var-description">: The reference of the observer of this concrete subject</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$o</span>			</li>
				</ul>
		
				<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../Observer/Subject.html#methodattach">Subject::attach()</a></dt>
						<dd>Attach an observer to this concrete subject</dd>
					</dl>
			
	</div>
<a name="methodcanReplay" id="canReplay"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">canReplay</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a302">302</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Is there an other commands to play</p>
<p class="description"><p>Is there an other commands to play</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> True if there is another command to play</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Boolean</span>
		<span class="method-name">
			canReplay
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodcanUndo" id="canUndo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">canUndo</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a307">307</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			canUndo
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodcopy" id="copy"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">copy</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a252">252</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Copy the selected text into the buffer</p>
<p class="description"><p>Copy the selected text into the buffer</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			copy
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodcut" id="cut"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">cut</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a262">262</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Cut the selected text into the buffer</p>
<p class="description"><p>Cut the selected text into the buffer</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			cut
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methoddetach" id="detach"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">detach</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a340">340</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Detach an observer from this concrete subject</p>
<p class="description"><p>Detach an observer from this concrete subject</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			detach
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$o</span>, <span class="var-type"><a href="../Observer/Observer.html">Observer</a></span>&nbsp;<span class="var-name">$o</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Observer/Observer.html">Observer</a></span>
				<span class="var-name">$o</span><span class="var-description">: The reference of the observer to be detached</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$o</span>			</li>
				</ul>
		
				<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../Observer/Subject.html#methoddetach">Subject::detach()</a></dt>
						<dd>Detach an observer from this concrete subject</dd>
					</dl>
			
	</div>
<a name="methodgetChar" id="getChar"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getChar</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a143">143</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get the current character</p>
<p class="description"><p>Get the current character</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> The current character</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Character</span>
		<span class="method-name">
			getChar
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetSelectionEnd" id="getSelectionEnd"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getSelectionEnd</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a173">173</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set the end of the selection</p>
<p class="description"><p>Set the end of the selection</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> the position of the begining of the selection</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getSelectionEnd
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetSelectionStart" id="getSelectionStart"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getSelectionStart</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a163">163</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get the begining of the selection</p>
<p class="description"><p>Get the begining of the selection</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> the position of the begining of the selection</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getSelectionStart
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetText" id="getText"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getText</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a183">183</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get the current text</p>
<p class="description"><p>Get the current text</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> current text</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">the</span>
		<span class="method-name">
			getText
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodinsert" id="insert"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">insert</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a242">242</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Insert a new character into the buffer</p>
<p class="description"><p>Insert a new character into the buffer</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			insert
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodnotify" id="notify"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">notify</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a354">354</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Notify the observers of this concrete subject</p>
<p class="description"><p>Notify the observers of this concrete subject</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			notify
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodpaste" id="paste"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">paste</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a272">272</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Paste the text from the clipboard into the buffer</p>
<p class="description"><p>Paste the text from the clipboard into the buffer</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			paste
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodredo" id="redo"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">redo</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a292">292</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			redo
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodreplay" id="replay"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">replay</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a282">282</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replay all saved commands</p>
<p class="description"><p>Replay all saved commands</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replay
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodreset" id="reset"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">reset</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a317">317</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Reset all states of Ihm and Buffer</p>
<p class="description"><p>Reset all states of Ihm and Buffer</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			reset
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsetChar" id="setChar"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setChar</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a153">153</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set the current character</p>
<p class="description"><p>Set the current character</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setChar
		</span>
					(<span class="var-type">Character</span>&nbsp;<span class="var-name">$char</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Character</span>
				<span class="var-name">$char</span><span class="var-description">: The current character</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetSelectionEnd" id="setSelectionEnd"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setSelectionEnd</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a217">217</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set the end of the selection</p>
<p class="description"><p>Set the end of the selection</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setSelectionEnd
		</span>
					(<span class="var-type">Integer</span>&nbsp;<span class="var-name">$val</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Integer</span>
				<span class="var-name">$val</span><span class="var-description">: the end of the selection</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetSelectionStart" id="setSelectionStart"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setSelectionStart</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a205">205</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set the begining of the selection</p>
<p class="description"><p>Set the begining of the selection</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setSelectionStart
		</span>
					(<span class="var-type">Integer</span>&nbsp;<span class="var-name">$val</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Integer</span>
				<span class="var-name">$val</span><span class="var-description">: the begining of the selection</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetText" id="setText"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setText</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a194">194</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set the content of the current text</p>
<p class="description"><p>Set the content of the current text</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setText
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$text</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$text</span><span class="var-description">: the new content</span>			</li>
				</ul>
		
			
	</div>
<a name="methodundo" id="undo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">undo</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a287">287</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			undo
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodupdate" id="update"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">update</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a366">366</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Update the current IHM's state</p>
<p class="description"><p>Update the current IHM's state</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			update
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$s</span>, <span class="var-type"><a href="../Command/Buffer.html">Buffer</a></span>&nbsp;<span class="var-name">$s</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Command/Buffer.html">Buffer</a></span>
				<span class="var-name">$s</span><span class="var-description">: The reference of the subject</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$s</span>			</li>
				</ul>
		
				<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../Observer/Observer.html#methodupdate">Observer::update()</a></dt>
						<dd>Update the subject's state</dd>
					</dl>
			
	</div>
<a name="methodupdateSelection" id="updateSelection"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">updateSelection</span> (line <span class="line-number"><a href="../__filesource/fsource_Observer__Ihm.php.html#a230">230</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Update the current selection</p>
<p class="description"><p>Update the current selection</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			updateSelection
		</span>
					(<span class="var-type">Inetger</span>&nbsp;<span class="var-name">$selStart</span>, <span class="var-type">Integer</span>&nbsp;<span class="var-name">$selEnd</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Inetger</span>
				<span class="var-name">$selStart</span><span class="var-description">: The begining of the selection</span>			</li>
					<li>
				<span class="var-type">Integer</span>
				<span class="var-name">$selEnd</span><span class="var-description">: The end of the selection</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 03 Dec 2010 16:49:29 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>